<!--
 * @页面名称:登录中转页
 * @描述: 
 * @作者: 
 * @Date:
-->
<template>
  <div>
    <el-result title="登录跳转中!" sub-title="请耐心等待..." icon="warning">
      <template #extra>
        <strong style="color: red">{{ Msg }}</strong>
      </template>
    </el-result>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { useRoute, useRouter } from "vue-router";

const route = useRoute();
const router = useRouter();
const Msg = ref("");

console.log("获取路由参数", route.query);

switch (route.query.M) {
  case "1":
    sessionStorage.setItem("list-query", JSON.stringify(route.query));
    router.push({
      path: "/catalog",
      query: {
        fmid: route.query.fmid,
        fmtid: route.query.fmtid,
        catalogid: route.query.catalogid,
        childrenFmtId: route.query.childrenFmtId,
        status: route.query.status,
        pageIndex: route.query.pageIndex,
        pageSize: route.query.pageSize,
        searchType: route.query.searchType,
        fondsId: route.query.fondsId
      }
    });
    break;
  case "2": // 单条数据列表
    sessionStorage.setItem("detail-query", JSON.stringify(route.query));
    router.push({
      path: "/detail",
      query: {}
    });
    break;
}
</script>

<style scoped></style>
